﻿namespace AgileBoard.Infrastructure.Data.Repositories
{
    using System.Collections.Generic;
    using Domain;
    using Domain.DataInterfaces;
    using SharpArch.Data.NHibernate;

    public class StatusRepository : Repository<Status>, IStatusRepository
    {
        public IList<Status> FindByIteration(string iterationId)
        {
            return Session.CreateQuery("from Status where IterationID = :iterationId")
                .SetParameter("iterationId", iterationId)
                .List<Status>();
        }
    }
}